package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fifth.common.pojo.dto.CommonResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author 第五组
 * @since 2022-09-08
 */
@TableName("l_option_log")
@ApiModel(value = "OptionLog对象", description = "操作日志")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("操作日志id")
    private String id;

    @ApiModelProperty("管理员名称")
    private String username;

    @ApiModelProperty("操作信息")
    private String msg;

    @ApiModelProperty("操作结果")
    private String result;

    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date time;

    @ApiModelProperty("操作人ip")
    private String ipaddr;

}
